package com.x.xiaoshuo.utils;

import android.content.Context;

import com.baidu.mobstat.StatService;

import java.util.HashMap;
import java.util.Map;


public class BuiduUtils {

    static public void searchBook(Context context, String name) {
        Map<String, String> attributes = new HashMap<String, String>();
        attributes.put("书名", name);
        StatService.onEvent(context, "searchbook", "searchbook", 1, attributes);
    }

    static public void readBook(Context context, String name) {
        Map<String, String> attributes = new HashMap<String, String>();
        attributes.put("书名", name);
        StatService.onEvent(context, "readbook", "readbook", 1, attributes);
    }

}
